package com.example.cloud.lijianconfigclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lj02
 * @desc
 * @date 2018/6/15
 */
@RestController
@RefreshScope
public class TestController {


    @Value("${foo}")
    private String name;
    @Value("${foo22}")
    private String foo22;

    @RequestMapping("/")
    public String showName() {
        return "config . name is " + name + " foo22 is " + foo22;
    }

}
